package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.TDriver;
import com.tmeone.erpone.mapper.TDriverMapper;
import com.tmeone.erpone.service.ITDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TDriverServiceImpl extends ServiceImpl<TDriverMapper, TDriver> implements ITDriverService {

    @Autowired
    private TDriverMapper driverMapper;

    @Override
    public IPage<TDriver> getPageDriver(IPage<TDriver> page) {
        return driverMapper.pageDriver(page);
    }

    @Override
    public IPage<TDriver> getPageDriverNameID(IPage<TDriver> page, String input1, String input2) {
        return driverMapper.getPageDriverNameID(page,input1,input2);
    }
}
